<?php
/*
 * @package WordPress
 * @subpackage ZeroWeight
 * 
 * Created by John Przeslakowski
 * http://blog.przeslakowski.com
 *
 */
?>
<?php if(!have_posts()): ?>
	
	<article>
		<h3 class="entry-title">Sorry, we couldn't find what you were looking for</h3>
		<div class="entry-content">
			<p class="zero-msg info">Nothing matched your search criteria. Please try again with some different keywords.</p>
			<?php get_search_form(); ?>
		</div>
	</article>

<?php endif; ?>

<?php while (have_posts()) : the_post(); ?>

	<?php $arc_year = get_the_time('Y'); ?>
	<?php $arc_month = get_the_time('m'); ?>
	<?php $arc_day = get_the_time('d'); ?>
	
	<?php get_template_part('post'); ?>
	
<?php endwhile; ?>

<?php if ($wp_query->max_num_pages > 1) : ?>
	<nav class="row">
		<section class="zero-previous six columns alpha"><?php next_posts_link('&larr; Older posts'); ?>&nbsp;</section>
		<section class="zero-next six columns omega">&nbsp;<?php previous_posts_link('Newer posts &rarr;'); ?></section>
	</nav>
<?php endif; ?>